import request from "./request";


// 分页列表
export const all = (name: object) => {
    return request({
        url: "/sys/menucon/all?name=" + name,
        method: 'GET'
    })
}

// 分页列表
export const tree = (params: object) => {
    return request({
        url: "/sys/menucon/tree",
        method: 'POST',
        data: params
    })
}

// 添加信息
export const insert = (params: object) => {
    return request({
        url: "/sys/menucon/insert",
        method: 'POST',
        data: params
    })
}

// 更新信息
export const update = (params: object) => {
    return request({
        url: "/sys/menucon/update",
        method: 'POST',
        data: params
    })
}

// 删除信息
export const remove = (params: object) => {
    return request({
        url: "/sys/menucon/remove",
        method: 'POST',
        data: params
    })
}

export default {
   all, tree, insert, update, remove
}